import { base } from "./api";
import axios from "./http";
// import qs from "qs";

const USER = {
  // 登陆
  login: params =>
    axios.get(`${base.URL}/bc_hb/loginUser`, { params }),
  // 用户信息
  USERINFORMATION: params =>
    axios.get(`${base.URL}/bc_hb/selectTownshipByUserId`, { params }),
  //修改用户管理
  USERDATA: params =>
    axios.get(`${base.URL}/bc_hb/updateUser`, { params }),
  // 注册用户等级
  USERLEVEL: params =>
    axios.get(`${base.URL}/bc_hb/selectAllUserGroup`, { params }),
  // 添加用户
  REGISTER: params =>
    axios.get(`${base.URL}/bc_hb/addUser`, { params }),
};

export default USER;
